I have been looking in the reference manual and searching the forums, but I can't find what I'm looking for. I have a string like "C:\Users\ccote1\Desktop\Baseline Diffs\test.html" and want to grab the path from the string. I noticed the stripPath function, but it is doing the opposite of what I want. I'd settle for a function that works like JavaScript's lastIndexOf (to find the last backslash) to use with the substring function.
Chris Cote Christopher Cote - Thu Dec 08 11:03:49 EST 2016 |
Re: Retrieving path from string Well, findPlainText work as you wanted: see Mathias explain this in https://www.ibm.com/developerworks/community/forums/html/topic?id=f6197757-44b2-4a05-8d32-b8d7a6f0fc1c&ps=25
Also, check the file "fileops.dxl" in your DOORS installation directory \lib\dxl\utils |